home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / NeXTcontour_1.7 / Source / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  546 b   |  32 lines

  1. /* collecting all the defines in one place */
  2.  
  3. #define ALLOCSIZE 2048        /* used in readData */
  4.  
  5. #ifndef MIN
  6. #define MIN(x,y) ((x)<(y)? (x) : (y))
  7. #endif
  8.  
  9. #ifndef MAX
  10. #define MAX(x,y) ((x)>(y)? (x) : (y))
  11. #endif
  12.  
  13. #ifndef ABS
  14. #define ABS(x) ( (x)<0? (-(x)) : (x) )
  15. #endif
  16.  
  17. #ifndef SGN
  18. #define SGN(x) ( (x)<0? -1.0 : 1.0 )
  19. #endif
  20.  
  21. #define XOFFSET 75.0        /* offsets (in pixels) of axis origin from */
  22. #define YOFFSET 25.0        /* lower left hand corner of window        */
  23. #define DEFAULTWIDTH 564
  24. #define DEFAULTHEIGHT 427
  25.  
  26. #define SQRT3  1.73205081
  27.  
  28.  
  29.  
  30.  
  31.  
  32.